package com.dorm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dorm.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 宿舍房间实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("room")
public class Room extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long buildingId;        // 楼栋ID
    private String roomNo;          // 房间号
    private Integer floor;          // 楼层
    private Integer bedCount;       // 床位总数
    private Integer availableBeds;  // 剩余床位
    private String type;            // 房间类型
    private String status;          // 状态：正常/维修中
    private String description;     // 描述
}

